package com.lin.eat.entry;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;

import java.util.ArrayList;
import java.util.List;

//@JsonIgnoreProperties({"c_password","dict_item_code"})
@JsonSerialize(include = JsonSerialize.Inclusion.NON_NULL)
public class Customer {

    private String c_id;
    private String c_name;
    private String c_phone;
    private String c_password;
    private String c_image;
    private int c_sex;
    private String c_token;

    private List<Address> addressList = new ArrayList<>();

    public Customer() {
    }

    public Customer(String c_id, String c_name, String c_phone, String c_image, int c_sex, String c_token, List<Address> addressList) {
        this.c_id = c_id;
        this.c_name = c_name;
        this.c_phone = c_phone;
        this.c_image = c_image;
        this.c_sex = c_sex;
        this.c_token = c_token;
        this.addressList = addressList;
    }

    @Override
    public String toString() {
        return "Customer{" +
                "c_id='" + c_id + '\'' +
                ", c_name='" + c_name + '\'' +
                ", c_phone='" + c_phone + '\'' +
                ", c_password='" + c_password + '\'' +
                ", c_image='" + c_image + '\'' +
                ", c_sex=" + c_sex +
                ", c_token='" + c_token + '\'' +
                ", addressList=" + addressList +
                '}';
    }

    public String getC_id() {
        return c_id;
    }

    public void setC_id(String c_id) {
        this.c_id = c_id;
    }

    public String getC_name() {
        return c_name;
    }

    public void setC_name(String c_name) {
        this.c_name = c_name;
    }

    public String getC_phone() {
        return c_phone;
    }

    public void setC_phone(String c_phone) {
        this.c_phone = c_phone;
    }

    public String getC_password() {
        return c_password;
    }

    public void setC_password(String c_password) {
        this.c_password = c_password;
    }

    public String getC_image() {
        return c_image;
    }

    public void setC_image(String c_image) {
        this.c_image = c_image;
    }

    public int getC_sex() {
        return c_sex;
    }

    public void setC_sex(int c_sex) {
        this.c_sex = c_sex;
    }

    public String getC_token() {
        return c_token;
    }

    public void setC_token(String c_token) {
        this.c_token = c_token;
    }

    public List<Address> getAddressList() {
        return addressList;
    }

    public void setAddressList(List<Address> addressList) {
        this.addressList = addressList;
    }
}
